@{
    Layout = null;
}

@using MvcDemo09.Models
@model IEnumerable<Student>

<link rel="stylesheet" href="~/css/base.css">
<div>
    <div>
        <tr>
            <td><input type="text" name="keyword" /></td>
            <td><button onclick="btnquery()">查询</button></td>
            <td><button onclick="btnadd()">新增</button></td>
        </tr>
    </div>
    <table>
        <thead>
            <tr>
                <td>id</td>
                <td>姓名</td>
                <td>备注</td>
                <td>操作</td>
            </tr>
        </thead>
        <tbody name="tbdata">
            @foreach (var item in Model)
            {
                <tr>
                    <td>@item.Id</td>
                    <td>@item.Name</td>
                    <td>@item.Remarks</td>
                    <td>
                        <button onclick="btnedit(@item.Id)">修改</button>
                        <button onclick="btndel(@item.Id)">删除</button>
                    </td>
                </tr>
            }
        </tbody>
    </table>
</div>
<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="~/js/base.js"></script>